<?php

defined('BASEPATH') or die('forbidden');

/**
 * 控制器基类
 * @author  Karson
 * @name    controller.php
 * @since   2012-8-15 11:37:24
 */
class Controller {

    var $controllers = array();
    var $models = array();
    var $libraries = array();

    function __construct() {
        framework::instance('controller', $this);
        $this->load = new Load();
        $this->config = &framework::instance()->config;
        $this->view = new View();
    }

    function index() {
        
    }

    function __call($name, $args) {
        //throw new Exception("未找到请求的控制器方法[{$name}],参数[" . implode(',', $args) . "]");
        show_404();
    }

}
